package com.cal.utms.dao.user_maintenance;

import java.util.List;

import com.cal.utms.entity.MenuScreen;
import com.cal.utms.entity.Screen;
import com.cal.utms.entity.User;
import com.cal.utms.entity.UserGroup;
import com.cal.utms.entity.UserGroupScreen;

public interface UserDao {

	public Object saveUser(User user);

	public List<UserGroup> getAllUserGruop();

	public UserGroup getUserGroupById(int userGroupId);

	public List<User> getAllUsers();

	public List<MenuScreen> getAllMenus();

	public Object saveUserGroup(UserGroup userGroup, List<UserGroupScreen> groupScreens);

	public Object updateUser(User user);

	public User getUserByUsername(String userName);

	public short changePassword(User user, String password);

	public List<MenuScreen> getMenuByGroupId(int groupid);

	public UserGroup getUserGroupByCode(String groupCode);

	public Screen getScreenById(int screenid);

}
